package com.xmy.cultivate.entity.views;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class MathChaPlan implements Serializable {
    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.NONE)
    private Long id;


    @ApiModelProperty("校区id")
    private Long schoolId;

    @ApiModelProperty("年份")
    private Integer yearPart;


    @ApiModelProperty("季度")
    private Integer quarterNum;


    @ApiModelProperty("学员id")
    private Long studentId;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("版本")
    private Long courseVersionId;

    @ApiModelProperty("科目")
    private Long subjectsId;


    @ApiModelProperty("备注")
    private String remark;


    @ApiModelProperty("是否删除，0正常，1删除")
    @TableLogic(value = "0", delval = "1")
    @TableField(select = false)
    private Integer deleted;


    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("应通关-正确题数")
    private Integer rightNum;

    @ApiModelProperty("应通关-修正题数")
    private Integer amendNum;

    @ApiModelProperty("课次-另做总人数返回给账务的记录")
    private Integer lessonNum;

    @ApiModelProperty("应通关")
    private Integer lowestShutnum;

    @ApiModelProperty("上课老师")
    private Long teacherId;

    @ApiModelProperty("班级id")
    private Long gradeId;

    @ApiModelProperty("班型")
    private Long classTypeId;

    @TableField(exist = false)
    private String studentName;

    @TableField(exist = false)
    private String gradeName;

    private String classTypeName;

    private String teacherName;

    private String schoolName;

    private Long createdId;

    private Integer showPassNum;
    private Integer yetPassNum;
    private Integer notPassNum;
    private Integer datePassNum;

    private Integer lowestShutnumAll;//应通关总题数
    private Integer rightNumAll;//正确总题数
    private Integer amendNumAll;//修正总题数
    private Integer errorNumAll;//错误总题数
    private Integer rightNumDate;//正确数，按日期查询的

    private Integer passType;

    private String yearClassName;

    private Integer passRade;

    private Integer brushCount;

    private Integer notBrushNum;

    private Integer againBrushNum;

    private Integer storeCount;

    private Integer drawUpCount;
}
